package enemies;

import java.awt.Dimension;
import java.awt.geom.Point2D;
import java.util.ArrayList;

import javax.swing.ImageIcon;

import projectiles.Bullet;
import projectiles.Projectile;

public class Infantry extends Enemy {

	private static final ImageIcon image = new ImageIcon("images/infantry.gif");

	public Infantry(ArrayList<Point2D.Double> route, Point2D.Double position, int health, int speed) {
		super(route, position, health, new Dimension(image.getIconWidth(), image.getIconHeight()), image, 500, 200, speed );
	}
	
	public Projectile shoot(){
		updateFirerate();

		return new Bullet( this, getPosition(), viewAngle, aimAtTower.getMiddle());
	}
	
}
